#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int n = 0, arr[101] = { 0 }, i = 0, k = 0, count = 0;
    scanf("%d", &n);
    for (i = 0; i < n; i++)
    {
        scanf("%d", &arr[i]);
    }
    scanf("%d", &k);
    for (i = 0; i < n; i++)
    {
        if (arr[i] == k)
        {
            count++;
        }
    }
    printf("%d\n", count);
}
